const path = require('path');
module.exports = {
    mode:'development',
    entry:path.resolve(__dirname,'./src/index.js'),
    output:{
        path:path.resolve(__dirname,'./dist'),
        filename:'[name].js'
    }
    
}


// const path = require('path');
// module.exports = {
//     mode:'development',
//     entry:path.resolve(__dirname,'./src/index.js'),
//     output:{
//         path:path.resolve(__dirname,'./dist'),
//         filename:'[name].js' // 定义一个变量导出
//     }
// }